﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace BrowserPL3
{
    /// <summary>
    /// Interaction logic for SettingWindow.xaml
    /// </summary>
    public partial class SettingWindow : Window
    {
        public SettingWindow()
        {
            InitializeComponent();
            homeUrl.Text = Properties.Settings.Default.Homepage;
        }

        private void Set_Click(object sender, RoutedEventArgs e)
        {
            Properties.Settings.Default.Homepage = homeUrl.Text;
        }

        private void default_Click(object sender, RoutedEventArgs e)
        {
            Properties.Settings.Default.Homepage=("http://www.google.com");
        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            this.Close();
        }
    }
}
